package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SuperPointDetailMapper;
import com.ruoyi.system.domain.SuperPointDetail;
import com.ruoyi.system.service.ISuperPointDetailService;

/**
 * 积分明细Service业务层处理
 * 
 * @author mzh
 * @date 2025-08-15
 */
@Service
public class SuperPointDetailServiceImpl implements ISuperPointDetailService 
{
    @Autowired
    private SuperPointDetailMapper superPointDetailMapper;

    /**
     * 查询积分明细
     * 
     * @param id 积分明细主键
     * @return 积分明细
     */
    @Override
    public SuperPointDetail selectSuperPointDetailById(Long id)
    {
        return superPointDetailMapper.selectSuperPointDetailById(id);
    }

    /**
     * 查询积分明细列表
     * 
     * @param superPointDetail 积分明细
     * @return 积分明细
     */
    @Override
    public List<SuperPointDetail> selectSuperPointDetailList(SuperPointDetail superPointDetail)
    {
        return superPointDetailMapper.selectSuperPointDetailList(superPointDetail);
    }

    /**
     * 新增积分明细
     * 
     * @param superPointDetail 积分明细
     * @return 结果
     */
    @Override
    public int insertSuperPointDetail(SuperPointDetail superPointDetail)
    {
        return superPointDetailMapper.insertSuperPointDetail(superPointDetail);
    }

    /**
     * 修改积分明细
     * 
     * @param superPointDetail 积分明细
     * @return 结果
     */
    @Override
    public int updateSuperPointDetail(SuperPointDetail superPointDetail)
    {
        return superPointDetailMapper.updateSuperPointDetail(superPointDetail);
    }

    /**
     * 批量删除积分明细
     * 
     * @param ids 需要删除的积分明细主键
     * @return 结果
     */
    @Override
    public int deleteSuperPointDetailByIds(Long[] ids)
    {
        return superPointDetailMapper.deleteSuperPointDetailByIds(ids);
    }

    /**
     * 删除积分明细信息
     * 
     * @param id 积分明细主键
     * @return 结果
     */
    @Override
    public int deleteSuperPointDetailById(Long id)
    {
        return superPointDetailMapper.deleteSuperPointDetailById(id);
    }

    @Override
    // 通过用户id查询积分明细
    public List<SuperPointDetail> getUserId(Long userId) {
        return superPointDetailMapper.getUserId(userId);
    }
}
